package com.voute.Model.Impl;

import com.voute.Api.RegisterService;
import com.voute.Model.Bean.BaseBean;
import com.voute.Model.Bean.RegistResponseBean;
import com.voute.Model.IRegisterModel;
import com.voute.Utils.ServiceFactory;

import java.util.HashMap;

import rx.Observable;

/**
 * 注册model实现类
 * Created by liucxu on 2017/1/16.
 */

public class RegisterModelImpl implements IRegisterModel {
    @Override
    public Observable<BaseBean> getSMSCode(HashMap<String, String> values) {
        return ServiceFactory.GetInstance().createService(RegisterService.class).getSMSCode(values);
    }

    @Override
    public Observable<RegistResponseBean> registerCount(HashMap<String, String> values) {
        return ServiceFactory.GetInstance().createService(RegisterService.class).registerCount(values);
    }
}
